package chat.whiteboard.components;

import java.awt.event.ActionListener;

import javax.swing.JButton;

import chat.whiteboard.WhiteBoardController;


public class SendButton extends JButton implements ICommand {
	WhiteBoardController controller = null;
	public SendButton(ActionListener act, WhiteBoardController controller){
		this.controller = controller;
		addActionListener(act);
		controller.registerSendButton(this);
	}
	@Override
	public void execute() {
		controller.sendInputText();
	}

}
